.f-datepicker-container {
    display: flex;
    position: absolute;
    margin: $f-cmp-datepicker-panel-spacer 0 0;
    padding: 0;
    box-shadow: $f-cmp-datepicker-panel-box-shadow;
    background-color: #fff;
    border-radius: $f-cmp-datepicker-panel-border-radius;
    z-index: 9999;
    animation: selectorfadein 0.06s;
    box-sizing: border-box;
    color: $f-cmp-datepicker-text-color;
    flex-wrap: wrap;
    font-family: PingFangSC-Regular, Arial;

    &:focus {
        border: none;
        outline: none;
    }

    .arrow {
        display: none;
        width: 1rem;
        height: $f-cmp-datepicker-arrow-height;
        margin: 0;
        position: absolute;
        left: 8px;

        &::before,
        &::after {
            content: "";
            border-color: transparent;
            border-style: solid;
            position: absolute;
            display: block;
            border-width: 0 $f-cmp-datepicker-arrow-height $f-cmp-datepicker-arrow-height;
        }

        &::after {
            top: 1px;
        }

        &::before {
            top: 0;
        }
    }

    &.container-position-bottom {
        .arrow {
            top: - $f-cmp-datepicker-arrow-height;

            &::after {
                border-width: 0 $f-cmp-datepicker-arrow-height $f-cmp-datepicker-arrow-height;
                border-bottom-color: #fff; //背景色
            }

            &::before {
                border-width: 0 $f-cmp-datepicker-arrow-height $f-cmp-datepicker-arrow-height;
                border-bottom-color: #fff; //边线颜色
            }
        }
    }

    // 面板朝上
    &.container-position-top {
        margin: -$f-cmp-datepicker-arrow-height;

        .arrow {
            top: auto;
            bottom: - $f-cmp-datepicker-arrow-height;

            &::after {
                border-width: $f-cmp-datepicker-arrow-height $f-cmp-datepicker-arrow-height 0;
                border-top-color: #fff; //背景色
            }

            &::before {
                border-width: $f-cmp-datepicker-arrow-height $f-cmp-datepicker-arrow-height 0;
                border-top-color: #fff; //边线颜色
            }

        }
    }

    .f-datepicker-sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 100px;
        border-right: 1px solid $f-neutral-13;
        box-sizing: border-box;
        padding-top: 6px;
        background-color: #ffffff;
        overflow: auto;

        button {
            display: block;
            width: 100%;
            border: 0;
            background-color: transparent;
            line-height: 28px;
            font-size: 14px;
            color: #606266;
            padding-left: 12px;
            text-align: left;
            outline: none;
            cursor: pointer;

            &:hover {
                color: #409eff;
            }
        }
    }

    .f-datepicker-content {
        width: 287px;

        .f-datepicker-header {
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid $f-neutral-13;

            .f-datepicker-prev-btn {
                padding-left: 1rem;

                .f-datepicker-header-btn {
                    color: $f-cmp-datepicker-header-btn-text;
                    padding: 1px 8px 1px 0;
                }
            }

            .f-datepicker-next-btn {
                padding-right: 1rem;

                .f-datepicker-header-btn {
                    color: $f-cmp-datepicker-header-btn-text;
                    padding: 1px 0 1px 8px;
                }
            }

            .f-datepicker-header-btn {
                height: 40px;
                outline: none;
                border: 0;
                background-color: #fff;
                line-height: 35px;
                font-size: 14px;
                padding: 1px 4px;
                cursor: pointer;

                &:hover {
                    color: $f-cmp-datepicker-header-btn-hover-color;
                }

                &:active {
                    color: $f-cmp-datepicker-header-btn-active-color;
                }

                &.f-datepicker-header-btn-disabled {
                    color: $f-text-07;

                    &:hover,
                    &:active {
                        color: $f-text-07;
                    }
                }
            }
        }

        .f-datepicker-table-wrapper {
            width: 100%;
            height: 254px;
            padding: 8px 12px;

            .f-datepicker-table {
                width: 100%;
                height: 100%;
                max-width: 100%;
                background-color: transparent;
                border-collapse: collapse;
                text-align: center;
                border: 0;

                th {
                    font-weight: normal;
                    color: $f-text-08;
                }

                tr {
                    &.f-datepicker-selectWeek {
                        cursor: pointer;
                        transition: all 0.3s;

                        &:not(.f-datepicker-selectedWeek):hover {
                            background: $f-cmp-datepicker-week-hover-bg;
                        }
                    }

                    &.f-datepicker-selectedWeek {
                        background: $f-cmp-datepicker-week-selected-bg;
                    }
                }

                td {
                    padding: 0;
                    position: relative;

                    &:focus {
                        border: 0;
                        outline: none;
                        box-shadow: none;
                    }

                    &.f-datepicker-weeknbr {
                        color: f-text-05;
                    }

                    &.f-datepicker-range::before {
                        position: absolute;
                        top: 3px;
                        right: 0;
                        bottom: 3px;
                        left: 0;
                        display: block;
                        background: $f-cmp-datepicker-range-bg;
                        border: 0;
                        border-radius: 0;
                        content: '';
                    }

                    .f-datepicker-markdate {
                        position: absolute;
                        top: 5px;
                        left: 5px;
                        width: 4px;
                        height: 4px;
                        border-radius: 50%;
                    }

                    .f-datepicker-date,
                    .f-datepicker-month,
                    .f-datepicker-year {
                        display: block;
                        padding: 0;
                        margin: 0 auto;
                        text-align: center;
                        background: 0 0;
                        border-radius: 2px;
                        transition: all 0.3s ease;
                        cursor: pointer;


                        &:hover {
                            color: $f-cmp-datepicker-date-hover-text;
                        }

                        &:active {
                            color: $f-cmp-datepicker-date-active-text ;
                        }
                    }

                    .f-datepicker-date {
                        width: 28px;
                        height: 28px;
                        line-height: 28px;
                        position: relative;
                        z-index: 1;
                        border: 1px solid transparent;
                        border-radius: $f-cmp-datepicker-border-radius;
                    }

                    .f-datepicker-month-cell,
                    .f-datepicker-year-cell {
                        display: inline-block;
                        padding: 3px 8px;
                        line-height: 20px;
                        border-radius: $f-cmp-datepicker-border-radius;
                        border: 1px solid transparent;
                    }

                    .f-datepicker-current {
                        border: $f-cmp-datepicker-current-border;
                        color: $f-cmp-datepicker-current-text;
                        box-shadow: $f-cmp-datepicker-current-box-shadow;
                    }

                    .f-datepicker-range {
                        color: $f-theme-03;
                        border: 1px solid $f-aid-02;
                        background: $f-aid-02;
                    }

                    .f-datepicker-selected {
                        border: $f-cmp-datepicker-selected-border;
                        background: $f-cmp-datepicker-selected-bg;
                        color: $f-cmp-datepicker-selected-text;
                        border-radius: $f-cmp-datepicker-border-radius;
                        box-shadow: $f-cmp-datepicker-selected-box-shadow;

                        &:hover {
                            color: $f-cmp-datepicker-selected-text;
                        }
                    }

                    .f-datepicker-highlight {
                        background: #75abf2;
                        color: #ffffff;

                        &:hover {
                            color: #ffffff;
                        }
                    }

                    &.f-datepicker-no-currmonth {
                        color: $f-text-07;
                    }

                    .f-datepicker-disabled {
                        background-color: $f-neutral-09;
                        color: $f-text-07;

                        &:hover {
                            color: $f-text-07
                        }
                    }
                }
            }
        }


    }

    .f-datepicker-commitBtn-wrapper {
        width: 100%;
        text-align: right;
        height: 2.8125rem;
        display: flex;
        align-items: center;
        padding: 0 1.5rem;
        border-top: 1px solid $f-neutral-13;
    }

    .f-datepicker-select-btn {
        outline: none;
        border: 0;
        cursor: pointer;
        flex-shrink: 1;
        flex-grow: 1;
        flex-basis: 0;

        &:hover {
            color: $f-theme-05;
        }
    }

}

/*区间*/
.f-cmp-datepicker .date-range-wrapper {
    display: flex;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: 0%;


    .sub-input {
        outline: 0;
        border: 0;
        height: 100%;
        display: block;
        width: 100%;
    }

    .sub-input.form-control {
        width: 100%;
        padding: 0;
    }

    .sub-input-wrapper-end {
        flex: 1 1 auto;
    }

    .sub-input-wrapper {
        position: relative;
    }

    .sub-input-wrapper::after {
        content: '';
        position: absolute;
        height: 1px;
        background: $f-theme-04;
        left: 0;
        bottom: 0;
        width: 0;
        transition: all 0.3s linear;
    }

    .sub-input-spliter {
        margin: 0 4px;
        flex-shrink: 0;
        line-height: 1;
        font-size: 12px;
        color: rgba(0, 0, 0, 0.45);
    }

    .sub-input-wrapper.f-state-focus::after {
        width: 100%;
    }
}

.f-cmp-datepicker {
    .input-group {
        display: flex;
    }

    .input-group.f-state-focus {
        border-color: $farris-input-focus-border-color;
        box-shadow: 0 0 0 2px rgba($f-theme-03, 0.14);
    }
}

@keyframes selectorfadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}